﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Shopping_Cart.Migrations
{
    public partial class AddDataToMyContext : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "Products",
                columns: new[] { "ProductId", "ImageName", "Price", "Text", "Title" },
                values: new object[,]
                {
                    { 1, "imagename1", 1000, "text1", "title1" },
                    { 2, "imagename2", 2000, "text2", "title2" },
                    { 3, "imagename3", 3000, "text3", "title3" },
                    { 4, "imagename4", 4000, "text4", "title4" },
                    { 5, "imagename5", 5000, "text5", "title5" },
                    { 6, "imagename6", 6000, "text6", "title6" },
                    { 7, "imagename7", 7000, "text7", "title7" },
                    { 8, "imagename8", 8000, "text8", "title8" }
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 1);

            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 2);

            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 3);

            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 4);

            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 5);

            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 6);

            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 7);

            migrationBuilder.DeleteData(
                table: "Products",
                keyColumn: "ProductId",
                keyValue: 8);
        }
    }
}
